Optimal. Leaf size=176 \[ -\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}}+\frac {b \tan ^{-1}\left (\sqrt {\frac {3}{2}} x^2\right )}{2 \sqrt {6}}+\frac {1}{12} d \log \left (3 x^4+2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 11, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.440, Rules used = {1876, 1168, 1162, 617, 204, 1165, 628, 1248, 635, 203, 260} \[ -\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt {6}\right )}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}}+\frac {b \tan ^{-1}\left (\sqrt {\frac {3}{2}} x^2\right )}{2 \sqrt {6}}+\frac {1}{12} d \log \left (3 x^4+2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 204
Rule 260
Rule 617
Rule 628
Rule 635
Rule 1162
Rule 1165
Rule 1168
Rule 1248
Rule 1876
Rubi steps
\begin {align*} \int \frac {a+b x+c x^2+d x^3}{2+3 x^4} \, dx &=\int \left (\frac {a+c x^2}{2+3 x^4}+\frac {x \left (b+d x^2\right )}{2+3 x^4}\right ) \, dx\\ &=\int \frac {a+c x^2}{2+3 x^4} \, dx+\int \frac {x \left (b+d x^2\right )}{2+3 x^4} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {b+d x}{2+3 x^2} \, dx,x,x^2\right )+\frac {1}{12} \left (\sqrt {6} a-2 c\right ) \int \frac {\sqrt {6}-3 x^2}{2+3 x^4} \, dx+\frac {1}{12} \left (\sqrt {6} a+2 c\right ) \int \frac {\sqrt {6}+3 x^2}{2+3 x^4} \, dx\\ &=\frac {1}{2} b \operatorname {Subst}\left (\int \frac {1}{2+3 x^2} \, dx,x,x^2\right )-\frac {\left (\sqrt {6} a-2 c\right ) \int \frac {\frac {2^{3/4}}{\sqrt [4]{3}}+2 x}{-\sqrt {\frac {2}{3}}-\frac {2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}-\frac {\left (\sqrt {6} a-2 c\right ) \int \frac {\frac {2^{3/4}}{\sqrt [4]{3}}-2 x}{-\sqrt {\frac {2}{3}}+\frac {2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}+\frac {1}{24} \left (\sqrt {6} a+2 c\right ) \int \frac {1}{\sqrt {\frac {2}{3}}-\frac {2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx+\frac {1}{24} \left (\sqrt {6} a+2 c\right ) \int \frac {1}{\sqrt {\frac {2}{3}}+\frac {2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx+\frac {1}{2} d \operatorname {Subst}\left (\int \frac {x}{2+3 x^2} \, dx,x,x^2\right )\\ &=\frac {b \tan ^{-1}\left (\sqrt {\frac {3}{2}} x^2\right )}{2 \sqrt {6}}-\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {1}{12} d \log \left (2+3 x^4\right )+\frac {\left (\sqrt {6} a+2 c\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac {\left (\sqrt {6} a+2 c\right ) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}\\ &=\frac {b \tan ^{-1}\left (\sqrt {\frac {3}{2}} x^2\right )}{2 \sqrt {6}}-\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac {\left (\sqrt {6} a+2 c\right ) \tan ^{-1}\left (1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {\left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac {1}{12} d \log \left (2+3 x^4\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 164, normalized size = 0.93 \[ \frac {1}{48} \left (-2 \sqrt [4]{6} \tan ^{-1}\left (1-\sqrt [4]{6} x\right ) \left (\sqrt {6} a+2 \left (\sqrt [4]{6} b+c\right )\right )+2 \sqrt [4]{6} \tan ^{-1}\left (\sqrt [4]{6} x+1\right ) \left (\sqrt {6} a-2 \sqrt [4]{6} b+2 c\right )-\sqrt [4]{6} \left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6} x^2-2 \sqrt [4]{6} x+2\right )+\sqrt [4]{6} \left (\sqrt {6} a-2 c\right ) \log \left (\sqrt {6} x^2+2 \sqrt [4]{6} x+2\right )+4 d \log \left (3 x^4+2\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 149, normalized size = 0.85 \[ \frac {1}{24} \, {\left (6^{\frac {3}{4}} a - 2 \, \sqrt {6} b + 2 \cdot 6^{\frac {1}{4}} c\right )} \arctan \left (\frac {3}{4} \, \sqrt {2} \left (\frac {2}{3}\right )^{\frac {3}{4}} {\left (2 \, x + \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}}\right )}\right ) + \frac {1}{24} \, {\left (6^{\frac {3}{4}} a + 2 \, \sqrt {6} b + 2 \cdot 6^{\frac {1}{4}} c\right )} \arctan \left (\frac {3}{4} \, \sqrt {2} \left (\frac {2}{3}\right )^{\frac {3}{4}} {\left (2 \, x - \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}}\right )}\right ) + \frac {1}{48} \, {\left (6^{\frac {3}{4}} a - 2 \cdot 6^{\frac {1}{4}} c + 4 \, d\right )} \log \left (x^{2} + \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}} x + \sqrt {\frac {2}{3}}\right ) - \frac {1}{48} \, {\left (6^{\frac {3}{4}} a - 2 \cdot 6^{\frac {1}{4}} c - 4 \, d\right )} \log \left (x^{2} - \sqrt {2} \left (\frac {2}{3}\right )^{\frac {1}{4}} x + \sqrt {\frac {2}{3}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 252, normalized size = 1.43 \[ \frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}-1\right )}{24}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}+1\right )}{24}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, a \ln \left (\frac {x^{2}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}{x^{2}-\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}\right )}{48}+\frac {\sqrt {6}\, b \arctan \left (\frac {\sqrt {6}\, x^{2}}{2}\right )}{12}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}-1\right )}{72}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \arctan \left (\frac {\sqrt {2}\, \sqrt {3}\, 6^{\frac {3}{4}} x}{6}+1\right )}{72}+\frac {\sqrt {3}\, 6^{\frac {3}{4}} \sqrt {2}\, c \ln \left (\frac {x^{2}-\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}{x^{2}+\frac {\sqrt {3}\, 6^{\frac {1}{4}} \sqrt {2}\, x}{3}+\frac {\sqrt {6}}{3}}\right )}{144}+\frac {d \ln \left (3 x^{4}+2\right )}{12} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.99, size = 207, normalized size = 1.18 \[ -\frac {1}{144} \cdot 3^{\frac {3}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} \sqrt {2} c - 2 \cdot 3^{\frac {1}{4}} 2^{\frac {1}{4}} d - 3 \, a\right )} \log \left (\sqrt {3} x^{2} + 3^{\frac {1}{4}} 2^{\frac {3}{4}} x + \sqrt {2}\right ) + \frac {1}{144} \cdot 3^{\frac {3}{4}} 2^{\frac {3}{4}} {\left (\sqrt {3} \sqrt {2} c + 2 \cdot 3^{\frac {1}{4}} 2^{\frac {1}{4}} d - 3 \, a\right )} \log \left (\sqrt {3} x^{2} - 3^{\frac {1}{4}} 2^{\frac {3}{4}} x + \sqrt {2}\right ) + \frac {1}{72} \, \sqrt {3} {\left (3 \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} a + 2 \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} c - 6 \, \sqrt {2} b\right )} \arctan \left (\frac {1}{6} \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} {\left (2 \, \sqrt {3} x + 3^{\frac {1}{4}} 2^{\frac {3}{4}}\right )}\right ) + \frac {1}{72} \, \sqrt {3} {\left (3 \cdot 3^{\frac {1}{4}} 2^{\frac {3}{4}} a + 2 \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} c + 6 \, \sqrt {2} b\right )} \arctan \left (\frac {1}{6} \cdot 3^{\frac {3}{4}} 2^{\frac {1}{4}} {\left (2 \, \sqrt {3} x - 3^{\frac {1}{4}} 2^{\frac {3}{4}}\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.64, size = 1168, normalized size = 6.64 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 13.07, size = 580, normalized size = 3.30 \[ \operatorname {RootSum} {\left (165888 t^{4} - 55296 t^{3} d + t^{2} \left (6912 a c + 3456 b^{2} + 6912 d^{2}\right ) + t \left (- 864 a^{2} b - 1152 a c d - 576 b^{2} d + 576 b c^{2} - 384 d^{3}\right ) + 27 a^{4} + 72 a^{2} b d + 36 a^{2} c^{2} - 72 a b^{2} c + 48 a c d^{2} + 18 b^{4} + 24 b^{2} d^{2} - 48 b c^{2} d + 12 c^{4} + 8 d^{4}, \left (t \mapsto t \log {\left (x + \frac {- 41472 t^{3} a^{2} c + 82944 t^{3} a b^{2} + 27648 t^{3} c^{3} + 5184 t^{2} a^{3} b + 10368 t^{2} a^{2} c d - 20736 t^{2} a b^{2} d + 10368 t^{2} a b c^{2} - 6912 t^{2} b^{3} c - 6912 t^{2} c^{3} d + 648 t a^{5} - 864 t a^{3} b d - 1728 t a^{3} c^{2} + 3888 t a^{2} b^{2} c - 864 t a^{2} c d^{2} + 864 t a b^{4} + 1728 t a b^{2} d^{2} - 1728 t a b c^{2} d + 864 t a c^{4} + 1152 t b^{3} c d + 864 t b^{2} c^{3} + 576 t c^{3} d^{2} - 54 a^{5} d + 270 a^{4} b c - 270 a^{3} b^{3} + 36 a^{3} b d^{2} + 144 a^{3} c^{2} d - 324 a^{2} b^{2} c d + 24 a^{2} c d^{3} - 72 a b^{4} d + 180 a b^{3} c^{2} - 48 a b^{2} d^{3} + 72 a b c^{2} d^{2} - 72 a c^{4} d - 72 b^{5} c - 48 b^{3} c d^{2} - 72 b^{2} c^{3} d + 72 b c^{5} - 16 c^{3} d^{3}}{81 a^{6} - 54 a^{4} c^{2} + 432 a^{3} b^{2} c - 216 a^{2} b^{4} - 36 a^{2} c^{4} + 288 a b^{2} c^{3} - 144 b^{4} c^{2} + 24 c^{6}} \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________